﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using HA.MT3DMS.DomainLayer;

namespace HA.ModFlow.Controls.MT3DMSWindows
{
    /// <summary>
    /// winMT3DPackage.xaml 的交互逻辑
    /// </summary>
    public partial class winMT3DPackage : Window
    {
        public winMT3DPackage(MTPCPackages pack)
        {
            InitializeComponent();        
            this._pcPackages =(MTPCPackages) pack .Clone ();

            //事件
            this.btnCancel.Click+=new RoutedEventHandler(btnCancel_Click);
            this.btnOk.Click+=new RoutedEventHandler(btnOk_Click);

        }

        #region 字段与属性

   

        MTPCPackages _pcPackages;

        public MTPCPackages PcPackages
        {
            get { return _pcPackages; }
            set { _pcPackages = value; }
        }



        #endregion

        #region  事件

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.DataContext = this._pcPackages;
        }

        private void btnCancel_Click(object sender,RoutedEventArgs e)
        {         
            this.DialogResult = false;
            this.Close();
        }
        private void btnOk_Click(object sender, RoutedEventArgs e)
        {          
            this.DialogResult = true;
            this.Close();
        }

        #endregion


    }
}
